package me.jessyan.mvparms.demo.mvp.contract;

import android.app.Activity;

import com.jess.arms.mvp.BaseModel;
import com.jess.arms.mvp.IModel;
import com.jess.arms.mvp.IView;

import java.util.List;

import io.reactivex.Observable;
import me.jessyan.mvparms.demo.data.entity.MessageListEntity;
import me.jessyan.mvparms.demo.data.entity.TopResponse;
import me.jessyan.mvparms.demo.mvp.ui.activity.MessageListActivity;

/**
 * @Author: 海洋
 * @Date: 2018/8/23
 * @Desc:
 */
public interface MessageListContract {

    interface View extends IView {
        void startLoadMore();

        void endLoadMore();

        void noMore();

        void startPullToRefresh();

        void endPullToRefresh();

        int getLimit();

        MessageListActivity getActivity();
    }

    interface Model extends IModel {
        Observable<TopResponse<List<MessageListEntity>>> getMessageList(String type, String page, String limit);
    }
}
